package com.xiaolin.designmode.strategy;

/**
 * @ClassName StrategyTest
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/5
 * @Version 1.0
 */
public class StrategyTest {
    public static void main(String[] args) {
        Context context=new Context();
        context.setStrategy(new ConcreteStrategy1());
        context.strategyMethod();
        context.setStrategy(new ConcreteStrategy2());
        context.strategyMethod();
    }
}
